<meta charset=UTF-8>
<h1>F12查看</h1>
<script src="utils.js"></script>

<h1>日期格式化</h1>
<script>
    console.group('日期格式化')
    console.log(timestampFormat(1649682687831)); //2012年01月10日 12:46
    console.log(timestampFormat(Date.parse('2022-4-11 20:53:10') / 1000));
    console.log(timestampFormat(Date.parse('2022-4-11 20:10:10') / 1000));
    console.log(timestampFormat(Date.parse('2022-4-11 10:10:10') / 1000));
    console.log(timestampFormat(Date.parse('2022-4-10 10:10:10') / 1000));
    console.log(timestampFormat(Date.parse('2022-2-11 10:10:10') / 1000));
    console.log(timestampFormat(Date.parse('2020-4-11 10:10:10') / 1000));
    console.groupEnd()
</script>
<h1>快速获取当前时间</h1>

<script>
    console.group('快速获取当前时间')
    console.log(getTime());
    console.groupEnd()
</script>

<h1>获取随机颜色</h1>
<script>
    console.group('获取随机颜色')
    console.log(color());
    console.groupEnd()

</script>

<h1>判断浏览器内核</h1>
<script>
    console.group('判断浏览器内核')
    console.log(GetCurrentBrowser());
    console.groupEnd()

</script>

<h1>判断现在是PC还是移动 true为PC端，false为手机端</h1>
<script>
    console.group('判断现在是PC还是移动 true为PC端，false为手机端')
    console.log(IsPC());
    console.groupEnd()
</script>

<h1>判断是否是微信浏览器</h1>
<script>
    console.group('判断是否是微信浏览器')
    console.log(isWeiXin());
    console.groupEnd()
</script>